<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>网格间隙</title>
<style>
.grid-container {
	display: grid;
	/* column-gap: 100px; */			/* 指定列之间的间隙 */
	/* grid-column-gap: 100px; */		/* 指定网格元素的间距大小 */
	/* row-gap: 30px; */
	/* grid-row-gap: 30px; */
	grid-gap: 30px 100px;
	grid-template-columns: auto auto auto;
	background-color: #2196F3;
	padding: 10px;
}

.grid-item {
	background-color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.8);
	padding: 20px;
	font-size: 30px;
	text-align: center;
}
</style>
</head>
<body>

<h1>grid-gap 属性</h1>

<p>使用 <em>grid-gap</em> 属性来设置行和列之间的网格间距：</p>

<div class="grid-container">
	<div class="grid-item">1</div>
	<div class="grid-item">2</div>
	<div class="grid-item">3</div>
	<div class="grid-item">4</div>
	<div class="grid-item">5</div>
	<div class="grid-item">6</div>
	<div class="grid-item">7</div>
	<div class="grid-item">8</div>
	<div class="grid-item">9</div>
</div>

</body>
</html>